package bat.ke.qq.com.dao;

import bat.ke.qq.com.anno.Dao;
import bat.ke.qq.com.anno.Yuanma;
import bat.ke.qq.com.bean.Fox;
import lombok.extern.slf4j.Slf4j;
import org.springframework.aop.framework.AopContext;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

import java.beans.Transient;
import java.lang.annotation.Target;

/**
 * Fox Dao
 */
@Component
@Dao
@Slf4j
public class FoxDao implements IFoxDao {
    @Override
    public void query() {
        try {
            Thread.sleep(10);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        log.info("===query==");
        //int i = 1/0;
    }

    @Override
    public void query(String name) {
        log.info("===query(String name)== {}", name);
    }

    @Override
    public void query(String name, String sex) {
        log.info("===query(String name,String sex)== {} {}", name, sex);
    }

    @Override
    public void query(Fox fox) {
        log.info("===query(FoxDao dao)== {}", fox);
    }

}
